<html>
<body>
报告可以收起为单个 <code>Collection.removeIf()</code> 调用的循环。
<p>示例：</p>
<pre><code>
  for (Iterator&lt;String&gt; it = collection.iterator(); it.hasNext(); ) {
    String aValue = it.next();
    if(shouldBeRemoved(aValue)) {
      it.remove();
    }
  }
</code></pre>
<p>在应用快速修复后：</p>
<pre><code>
  collection.removeIf(aValue -> shouldBeRemoved(aValue));
</code></pre>
<!-- tooltip end -->
</body>
</html>